package com.mdlib.helper.common;

import com.mdlib.helper.app.AppContext;

import java.io.File;

/**
 * Created by librabin on 16/8/18.
 */
public class MDConstant {

    // 账户类型
    public enum ACCOUNT_TYPE {
        DEFAULT,
        MSG,
        QQ,
        WX
    }

    public static final String CLIENT_TYPE = "2";
    public static final int ACCOUNT_TYPE_DEFAULT = 1;
    public static final int ACCOUNT_TYPE_MSG = ACCOUNT_TYPE_DEFAULT + 1;
    public static final int ACCOUNT_TYPE_AUTH = ACCOUNT_TYPE_MSG + 1;


    public static final int AUTH_TYPE_QQ = 1;
    public static final int AUTH_TYPE_WX = AUTH_TYPE_QQ + 1;




    public static final String PHONE_CODE_TYPE_LOGIN = "login";
    public static final String PHONE_CODE_TYPE_REG = "reg";
    public static final String PHONE_CODE_TYPE_FORGET = "forget";
    public static final String PHONE_CODE_TYPE_WITHDRAWS = "withdraws";


    public static final String SEND_HEARTBEAT = "http://live.xiangchang.com/index.php/api/live/host_heartbeat";


    public static final String IMG_DEFAULT_URL = "http://live.xiangchang.com";


    public static final int STATE_SUCC = 0;
    public static final int STATE_FAIL = -1;


    //=============== PATH ============================

    public static final String PATH_DATA = AppContext.getInstance().getCacheDir().getAbsolutePath() + File.separator + "data";
    public static final String PATH_CACHE = PATH_DATA + "/MDCache";

    public static final String LOGIN_TYPE_LOCAL = "0";
    public static final String LOGIN_TYPE_THIRD = "1";
    public static final String LOGIN_TYPE_SMS = "2";


    public static final int LOGIN_TYPE_NORMAL = 0;
    public static final int LOGIN_TYPE_CLEAR = 1;


    public static final String VERSION = "vesion";


    public static final String SESSION_ID = "session_id";

    public static final String CONFIG_INFO = "config_info";

    public static final String LOGIN_INFO = "login_info";
    public static final String LOGIN_NAME = "login_name";
    public static final String LOGIN_PASSWORD = "login_password";
    public static final String IS_LOGIN = "is_login";

    public static final String IS_THRID_LOGIN = "is_thrid_login";
    public static final String LOGIN_TYPE = "login_type";
    public static final String THRID_TYPE = "third_type";
    public static final String THRID_UID = "thrid_uid";

    public static final String RECHARGE_RATE = "recharge_rate";
    public static final String EXTRACT_RATE = "extract_rate";
    public static final String FLAT_NAME = "flat_name";
    public static final String RECHARGE_UNIT = "recharge_unit";
    public static final String USER_GET_UNIT = "user_get_unit";

    public static final String OSS_AccessKeyId = "access_key_id";
    public static final String OSS_AccessKeySecret = "access_key_secret";
    public static final String OSS_endpoint = "endpoit";
    public static final String OSS_bucket = "bucket";
    public static final String OSS_img_sp = "img_sp";


    public static final String ACTION_AUTH_INFO = "com.md.action_auth_info";

    public static final String EVENT_AUTH_WX = "event_auth_wx";
    public static final String PLATFORM = "2";

    public static final String WITHDRAWS = "withdraws";


    public static final String GIFT_ID_POSCHE = "31";
    public static final String GIFT_ID_BONUS = "32";


}
